using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using DAOLayer;
using DTOLayer;

namespace BUSLayer
{
    public class NhaXuatBanBUS:AbstractBus
    {
        public int TestExisted(NhaXuatBanDTO dto)
        {
            NhaXuatBanDAO dao = new NhaXuatBanDAO();
            return dao.TestExisted(dto);
        }
        public int InsertNhaXuatBan(NhaXuatBanDTO dto)
        {
            NhaXuatBanDAO dao = new NhaXuatBanDAO();
            return dao.InsertNhaXuatBan(dto);
        }
        public int DeleteNhaXuatBan(int ma)
        {
            NhaXuatBanDAO dao = new NhaXuatBanDAO();
            return dao.DeleteNhaXuatBan(ma);
        }
        public int UpdateNhaXuatBan(NhaXuatBanDTO dto)
        {
            NhaXuatBanDAO dao = new NhaXuatBanDAO();
            return dao.UpdateNhaXuatBan(dto);
        }
        public DataTable LayDanhSach()
        {
            NhaXuatBanDAO dao = new NhaXuatBanDAO();
            return dao.LayDanhSach();
        }
    }
}
